import { createStore } from "redux";
import { persistStore, persistReducer } from 'redux-persist'
import reducer from "./reducer";
import storage from 'redux-persist/lib/storage'
var persistedReducer = persistReducer({ key: 'redux', storage }, reducer);
var store = createStore(persistedReducer);
var persistor = persistStore(store)

export { store, persistor } 